<?php
/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-04 13:31
 */

namespace App\Controller\Api\Task;

use App\Controller\User\BaseController;
use App\Model\Task\Task;
use App\Service\Task\TaskReportService;
use App\Service\Task\TaskService;
use App\Service\User\UserService;
use Hyperf\Config\Annotation\Value;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\PostMapping;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\FormData;
use Yj\Apidog\Annotation\PostApi;

/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-04 13:31
 * @ApiController(prefix="api/task/task-report-types")
 */
class TaskReportTypesController extends BaseController
{

    /**
     * @Inject()
     * @var TaskReportService
     */
    protected $taskReportService;

    /**
     * @Notes:【】
     * @Date: 2022-06-04 2:39
     * @PostApi(path="lists")
     */
    public function lists()
    {
        $data = $this->taskReportService->getTypes();
        _SUCCESS($data);
    }

}